package team.freeroom.hotelmanage.repository.entity;

/**
 * 权限实体类
 *
 * @author aBadString
 */
public class Authority {
    /**
     * 权限 ID
     */
    private Long id;
    /**
     * 角色 ID
     */
    private Long roleId;
    /**
     * 菜单 ID
     */
    private Long menuId;

    public Authority() {
    }

    public Authority(Long roleId, Long menuId) {
        this.roleId = roleId;
        this.menuId = menuId;
    }

    public Authority(Long id, Long roleId, Long menuId) {
        this.id = id;
        this.roleId = roleId;
        this.menuId = menuId;
    }

    @Override
    public String toString() {
        return "Authority{" +
                "id=" + id +
                ", roleId=" + roleId +
                ", menuId=" + menuId +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public Long getMenuId() {
        return menuId;
    }

    public void setMenuId(Long menuId) {
        this.menuId = menuId;
    }
}
